package com.shop.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.shop.common.validator.annotation.IDMust;

/**
 * 考试记录参数
 * @author DragonDean
 */
@Data
@ApiModel("考试记录更新参数")
public class PaperLogUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "")
    private Integer id;

    @NotNull(message = "userType参数缺失")
    @ApiModelProperty(value = "用户类型,1技师，2合伙人")
    private Integer userType;

    @NotNull(message = "userId参数缺失")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @NotNull(message = "userName参数缺失")
    @ApiModelProperty(value = "用户名称")
    private String userName;

    @NotNull(message = "paperId参数缺失")
    @ApiModelProperty(value = "试卷")
    private Integer paperId;

    @NotNull(message = "paperTitle参数缺失")
    @ApiModelProperty(value = "考试名称")
    private String paperTitle;

    @NotNull(message = "totalScore参数缺失")
    @ApiModelProperty(value = "总分")
    private Integer totalScore;

    @NotNull(message = "passingMark参数缺失")
    @ApiModelProperty(value = "及格线")
    private Integer passingMark;

    @NotNull(message = "score参数缺失")
    @ApiModelProperty(value = "得分")
    private Integer score;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "结果，0未交卷，1已通过，2未通过")
    private Integer status;

    @NotNull(message = "time参数缺失")
    @ApiModelProperty(value = "用时(秒)")
    private Integer time;

    @NotNull(message = "createIp参数缺失")
    @ApiModelProperty(value = "交卷IP")
    private String createIp;

    @NotNull(message = "updateIp参数缺失")
    @ApiModelProperty(value = "更新(交卷)IP")
    private String updateIp;

}
